using System;
using Server;
using Server.Mobiles;

namespace Server.Items
{
    public class GrammarOfOrchishTalisman : BaseTalisman
    {
        public override int LabelNumber { get { return 1073358; } } // Library Talisman - a Grammar of Orchish (Summoner)
        public override bool ForceShowName { get { return true; } }

        [Constructable]
        public GrammarOfOrchishTalisman()
            : base(0x2F59)
        {
            Blessed = GetRandomBlessed();
            Protection = GetRandomProtection();
            Summoner = new TalismanAttribute(typeof(SummonedOrcBrute), 0, 1072414);

            SkillBonuses.SetValues(0, SkillName.MagicResist, 5.0);
            SkillBonuses.SetValues(1, SkillName.Anatomy, 7.0);

            MaxChargeTime = 1800;
        }

        public GrammarOfOrchishTalisman(Serial serial)
            : base(serial)
        {
        }

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
        }

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }
    }
}